package com.ngkj.zmfptback.sys.mapper.read;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ngkj.zmfptback.sys.bean.AuthorityEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ChenHN
 * @since 2021/12/22 creation
 **/
@Mapper
public interface AuthReadMapper extends BaseMapper<AuthorityEntity> {
    List<AuthorityEntity> getAuthList();

    AuthorityEntity getAuthIdByTypeAndFunId(@Param("type") String type,@Param("id") Long id);

    List<String> getAuthByMenuIds(@Param("list") List<String> list,@Param("type") String type);
}
